package day1217;

import java.util.Scanner;

// ==   !=
public class Test9 {
    public static void main(String[] args) {
        /*int a1=new Scanner(System.in).nextInt();
        System.out.println( a1!=18 );

        byte a2=new Scanner(System.in).nextByte();
        System.out.println( a2!=18 );

        double a3=new Scanner(System.in).nextDouble();
        System.out.println( a3!=18 );

        boolean a4=new Scanner(System.in).nextBoolean();
        System.out.println( a4==false );

        char a5=new Scanner(System.in).next().charAt(0);
        System.out.println( a5=='T' );
*/


        //8中类型： 整数  浮点   字符    boolean   ==   ！=
        //String                                .equals()
        String name="dfds";
        System.out.println(  ! "张三".equals(name)   );


        int i=4;

        Integer t1 = 4;
        System.out.println(! t1.equals(3));





        int n=4;
        //首先将n变量的值赋值给n++, 然后再将n加1
        System.out.println(n++);//4 //System.out.println(  n++ * 6 );//24
        System.out.println(n);//5

        int n2=4;
        //先将n2加1, 将n2变量的值赋值给++n2,
        System.out.println(++n2);//5  //n2=5,  ++n2(5)
        System.out.println(n2);//5

        int j=9;
        //9(j8)   9(j9)
        int rs=  j--  +  ++j   - --j - j++;
        System.out.println(rs);
        System.out.println(j);





        int h=-7;
        //&&短路与：左边的条件不成立， 右边的条件就不会判断了
        System.out.println(   0<h  &&  h-- <10  );
        //&逻辑与： 两个条件都要判断
        System.out.println(   0<h  &   h-- <10  );

        int k=5;
        //短路或|| :左边的条件如果成立，， 右边的条件就不会判断了
        System.out.println(   0<h  ||  h-- <10  );
        //|逻辑或： 两个条件都要判断
        System.out.println(   0<h  |   h-- <10  );


        System.out.println(-5 >>> 2);
        System.out.println(-5 >> 2);
        System.out.println(0b11111111111111111111111111111110);

    }
}
